/*
 * Copyright 2020-9-11 Baheal
 * @(#)RocketMQController.java
 */
package com.byyy.ccts.modules.monitor.controller;

import com.byyy.ccts.core.common.controller.BaseController;
import com.byyy.ccts.core.security.shiro.authz.annotation.RequiresMethodPermissions;
import com.byyy.ccts.core.security.shiro.authz.annotation.RequiresPathPermission;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author liyongbo
 * @version 1.0
 * @date 2020-9-11 20:15
 * @description：
 */
@Controller
@RequestMapping("${admin.url.prefix}/monitor/rocketmq")
@RequiresPathPermission("monitor:rocketmq")
public class RocketMQController extends BaseController {

    @RequiresMethodPermissions("index")
    @RequestMapping(method = RequestMethod.GET)
    public String index(Model model, HttpServletRequest request, HttpServletResponse response) {
        return display("index");
    }
}
